package cc.telecomdigital.tdstock.trading.Tools;

import cc.telecomdigital.tdstock.Framework.UniqueItem.TDStockLog;
import android.app.Activity;

public class ViewCtrlHelper
{
	/** Set Control to be disbale and nonfocusable, and vice versus **/
	static public void SetEnableRequestView(Activity iActivity, int iResId,
			boolean iEnabled)
	{
		try
		{
			iActivity.findViewById(iResId).setEnabled(iEnabled);
			iActivity.findViewById(iResId).setFocusable(iEnabled);
		}
		catch (Exception ex)
		{
			TDStockLog.e("ViewCtrlHelper", "SetEnableRequestView: " + ex.toString());
		}
	}
}
